package com.team2.insulatingtools.modular.tools.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team2.insulatingtools.modular.tools.dto.ToolDetailDto;
import com.team2.insulatingtools.modular.tools.dto.ToolMsgDto;
import com.team2.insulatingtools.modular.tools.dto.ToolDetailQueriedDto;
import com.team2.insulatingtools.modular.tools.entity.ToolDetail;
import com.team2.insulatingtools.modular.tools.pojo.request.ToolDetailRequest;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 工具详细信息  Mapper 接口
 *
 * @author team2
 * @date 2023/04/03 09:48
 */
public interface ToolDetailMapper extends BaseMapper<ToolDetail> {

    List<ToolDetailQueriedDto> selectByWorkshopAndTool(IPage<?> iPage, @Param("toolDetailDto") ToolDetailDto toolDetailDto);

    int deleteBatchByToolIdList(List<Integer> toolIdList);

    IPage<ToolDetail> selectListByTid(int tid, Page page);


    void updateBatch(ToolDetailRequest toolDetailRequest);
}
